<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class OrgDepartment extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'org_department';

    protected $primaryKey = 'department_id';

    protected $touches = ['owners'];

    public function owners()
    {
        return $this->hasMany(OrgDepartmentOwner::class, 'department_id', 'department_id');
    }
}
